package com.gidas.server;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ObjectEvaluationDB {
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    
    private String user;
	
	@Persistent
    private ObjectDB POI;
	
	@Persistent
    private Date date;	

	@Persistent
    private Text comment;	
	
	@Persistent
    private int time;
	
	@Persistent
    private int rating;
	
	public String getUser() 
	{
		return user;
    }

	public void setPOI(ObjectDB pOI) {
		this.POI = pOI;
	}

	public ObjectDB getPOI() {
		return POI;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getDate() {
		return date;
	}

	public void setComment(Text comment) {
		this.comment = comment;
	}

	public Text getComment() {
		return comment;
	}

	public void setTime(int time) {
		this.time = time;
	}

	public int getTime() {
		return time;
	}

	public void setRating(int rating) {
		this.rating = rating;
	}

	public int getRating() {
		return rating;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}
}
